package cn.zhpdmmz.utils;

import cn.zhpdmmz.entity.Payment;
import java.util.Calendar;
public class CreatPaymentNo extends Payment {
    public String newPaymentNo() {

        Calendar cal=Calendar.getInstance();
        int y=cal.get(Calendar.YEAR);
        int mo=cal.get(Calendar.MONTH)+1;
        int d=cal.get(Calendar.DATE);
        int h=cal.get(Calendar.HOUR_OF_DAY);
        int mi=cal.get(Calendar.MINUTE);
        int s=cal.get(Calendar.SECOND);
        String paymentNo = "Pay" + "_" + y + mo + d + "_" + h + mi + s;
        return paymentNo;
    }
}